package com.ymatou.iapi.livemanage.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.livemanage.parameter.GetSellerDeliveryBean;
import com.ymatou.iapi.livemanage.service.GetSellerDeliveryCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
/**
*获取买手配送方式接口
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_GetSellerDelivery{
	private static GetSellerDeliveryBean gsdb;
	private static GetSellerDeliveryCall gsdc;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("获取买手配送方式接口");
	}

	@Before
	public void caseUp() {
		gsdb=new GetSellerDeliveryBean();
		gsdc=new GetSellerDeliveryCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(gsdc.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	 @Test
	 @Category(P1.class)
	 @TestCase
	 @Ignore
	public void Tc_GetSellerDelivery_001() {
		 Logger.start(true,"发送消息成功");
		 try {
				Logger.comment("setSellerId:3383");
				gsdb.setSellerId(3383);
				gsdc.setData(gsdb);
				gsdc.callService();
				Logger.comment("发送消息报文:" + gsdc.getEntityString());
				Logger.comment("返回消息报文：" + gsdc.getReturnData());
				// TODO 返回信息 待验证
				// APPID 不正确时会报错
			} catch (Exception e) {
				Logger.fail(e);
			}
		 
	 }
}